//导入 express 包
const express = require('express');

//创建路由器对象
const router = express.Router();

//创建路由规则
router.get('/', (req, res) => {
  res.send('欢迎来到红浪漫~~');
});

router.get('/hello', (req, res) => {
  res.end('Hello Express');
});

//暴露
module.exports = router;